package com.cloud.bean.customer;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyuan
 * @since 2022-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("c_customer_bill")
public class CustomerBill extends Model<CustomerBill> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 入库商品id
     */
    private Integer goodsId;

    /**
     * 商品的名称
     */
    private String name;

    /**
     * 商品的数量
     */
    private Integer num;

    /**
     * 商品的进价
     */
    private BigDecimal purchasePrice;

    /**
     * 支付方式 现金支付cash_pay、微信支付 wx_pay、支付宝支付ali_pay、银行卡支付bank_pay
     */
    private String payType;

    /**
     * 订单的状态
未支付 unpaid
已支付 payment
     */
    private String status;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    private LocalDateTime updateDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
